package com.memoir.controller.common;

import com.memoir.common.response.ServerResponse;
import com.memoir.service.common.ImageCommonService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api("公共")
@RestController
@RequestMapping("/common")
@AllArgsConstructor
public class ImageCommonController {

    private final ImageCommonService imageCommonService;


    @ApiOperation("查询标签基础数据")
    @RequestMapping("/queryTagList")
    public ServerResponse queryTagList(){
       return ServerResponse.buildSuccess(imageCommonService.queryTagList());
    }

    @ApiOperation("查询控件类型基础数据")
    @RequestMapping("/querySpaceTypeList")
    public ServerResponse querySpaceTypeList(){
        return ServerResponse.buildSuccess(imageCommonService.querySpaceTypeList());
    }

    @ApiOperation("页面菜单展示数据")
    @RequestMapping("/queryPageLables")
    public ServerResponse queryPageLable(){
        return ServerResponse.buildSuccess(imageCommonService.queryPageLable());
    }


}
